package com.ruoyi.yljf.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.vo.SysDictDataVO;
import com.ruoyi.yljf.domain.Article;
import com.ruoyi.yljf.domain.dto.CreateDTO.ArticleCreateDTO;
import com.ruoyi.yljf.domain.vo.ArticleTypeVO;
import com.ruoyi.yljf.domain.vo.ArticleVO;
import com.ruoyi.yljf.domain.vo.SearchVO;

/**
 * 咨询文章Service接口
 * 
 * @author metaee
 * @date 2025-02-13
 */
public interface IArticleService extends IService<Article> {
    /**
     * 查询咨询文章列表
     * 
     * @param article 咨询文章
     * @return 咨询文章集合
     */
    public List<Article> selectArticleList(Article article);

    public List<ArticleVO> selectArticleVOList(Article article);

    public List<ArticleVO> typeConversion(List<Article> articles);

    ArticleVO queryById(Long id);

    List<ArticleTypeVO> queryArticle(List<SysDictDataVO> secondaryType);

    /** 点赞 */
    void pointLike(Long articleId);

    /** 转发 */
    void forwarding(Long articleId);

    void insertArticle(ArticleCreateDTO dto);
}
